package com.rybbaby.tss.front.tssTransitionFeesSet.entity;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @author 雷春琼
 * @description 过渡收费设置
 * @createDate 2017-08-10 上午12:43:26
 */
@Entity
@Table(name = "tss_transition_fees_set_group")
@DynamicUpdate(true)
@DynamicInsert(true)
public class TssTransitionFeesSetGroup implements Serializable {

    private static final long serialVersionUID = 56353797763197L;

    /**
     * 主键
     **/
    private String id;

    /**
     * 一次性物品费
     **/
    private Double oneTimeItemsFee;

    /**
     * 月餐点费标准值
     **/
    private Double mealFeeStandard;

    /**
     * 月餐点费限制截止值
     **/
    private Double mealFeeLimitEnd;
    /**
     * 月餐点费限制起始值
     **/
    private Double mealFeeLimitStart;
    /**
     * 版本
     **/
    private Integer version;
    /**
     * 过渡收费id
     */
    private String feesSetId;

    /**
     * 过渡收费类型  (全日或者半日)
     */
    private Integer type;


    /**
     * 方法: 取得主键
     *
     * @return java.lang.String 主键
     */
    @Id
    @GeneratedValue(generator = "tss_transition_fees_setIDGenerator", strategy = GenerationType.AUTO)
    @GenericGenerator(name = "tss_transition_fees_setIDGenerator", strategy = "uuid")
    @Column(name = "id", nullable = false, length = 32)
    public String getId() {
        return this.id;
    }

    /**
     * 方法: 设置主键
     *
     * @param id 主键
     */
    public void setId(String id) {
        this.id = id;
    }


    /**
     * 方法: 取得版本
     *
     * @return java.lang.Integer 版本
     */
    @Version
    @Column(name = "version", nullable = true, length = 11)
    public Integer getVersion() {
        return this.version;
    }

    /**
     * 方法: 设置版本
     *
     * @param version 版本
     */
    public void setVersion(Integer version) {
        this.version = version;
    }

    @Column(name = "oneTimeItemsFee", nullable = true, length = 22)
    public Double getOneTimeItemsFee() {
        return oneTimeItemsFee;
    }

    public void setOneTimeItemsFee(Double oneTimeItemsFee) {
        this.oneTimeItemsFee = oneTimeItemsFee;
    }

    @Column(name = "mealFeeStandard", nullable = true, length = 22)
    public Double getMealFeeStandard() {
        return mealFeeStandard;
    }

    public void setMealFeeStandard(Double mealFeeStandard) {
        this.mealFeeStandard = mealFeeStandard;
    }

    @Column(name = "mealFeeLimitEnd", nullable = true, length = 22)
    public Double getMealFeeLimitEnd() {
        return mealFeeLimitEnd;
    }

    public void setMealFeeLimitEnd(Double mealFeeLimitEnd) {
        this.mealFeeLimitEnd = mealFeeLimitEnd;
    }

    @Column(name = "mealFeeLimitStart", nullable = true, length = 22)
    public Double getMealFeeLimitStart() {
        return mealFeeLimitStart;
    }

    public void setMealFeeLimitStart(Double mealFeeLimitStart) {
        this.mealFeeLimitStart = mealFeeLimitStart;
    }

    @Column(name = "feesSetId", nullable = true, length = 32)
    public String getFeesSetId() {
        return feesSetId;
    }

    public void setFeesSetId(String feesSetId) {
        this.feesSetId = feesSetId;
    }
    @Column(name = "type", nullable = true, length = 11)
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
}